package com.sims.service.impl;

import com.sims.dao.IStnUserDao;
import com.sims.dao.impl.StnUserDaoImp;
import com.sims.eo.StnUser;
import com.sims.service.IUserService;

public class UserServiceImp implements IUserService {
	
	IStnUserDao stnUserDao = new StnUserDaoImp();

	@Override
	public boolean validateLogin(String userAccount, String userPassword) {
		StnUser stnUser = stnUserDao.getUserbyAccount(userAccount);
		boolean validate = false;
		if(stnUser != null){
			if(stnUser.getUserPassword().equals(userPassword)){
				validate = true;
			}
		}
		return validate;
	}

}
